package boot.servlet;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @Author: zhiyu
 * @Date:15:53
 * @DESC:
 */
@WebListener
public class MyListener implements ServletContextListener {
    public MyListener() {
        System.out.println("listener 构造方法");
    }

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("mylistener contextInitialized");
    }
}
